package com.young.core.domain;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;


public class JobInfoDO implements Serializable {

    private Integer id;

    private Date createTime;

    private Date modifyTime;

    private String jobName;

    private String jobUniqCode;

    private String timeJobUniqCode;

    private String jobMethod;

    private String jobCode;

    private String jobGroup;

    private String project;

    private String jobDesc;

    private String jobOwner;

    private String expressionType;

    private String expression;

    private String jobArgs;

    private String jobRunNode;

    private List<String> jobActiveNode = new ArrayList<>();

    private Integer port;

    private String group;
    /**
     * 内存中使用-执行节点数据
     */
    private List<NodeRegistryDO> nodes;

    /**
     * 任务执行策略
     * 0 --> 第一个节点执行
     * 1 --> 随机节点执行
     * 2 --> 全节点执行
     * 3 --> 分片执行
     */
    private Integer strategyCode;

    /**
     * 启动状态
     * 1 --> 启动
     * 0 --> 停止
     */
    private int scheduleStatus;

    private int maxRunTime;

    private String lastModifyUser;

    private String ldapUser;

    private String headerKey;

    private String headerValue;

    /**
     * P3->0,P2->1,P1->2,P0->3,PX->4
     */
    private Integer jobLevel;

    private String comment;

    /** 测试人员 */
    private String tester;

    public String getProject() {
        return project;
    }

    public void setProject(String project) {
        this.project = project;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public String getJobUniqCode() {
        return jobUniqCode;
    }

    public void setJobUniqCode(String jobUniqCode) {
        this.jobUniqCode = jobUniqCode;
    }

    public String getTimeJobUniqCode() {
        return timeJobUniqCode;
    }

    public void setTimeJobUniqCode(String timeJobUniqCode) {
        this.timeJobUniqCode = timeJobUniqCode;
    }

    public String getJobMethod() {
        return jobMethod;
    }

    public void setJobMethod(String jobMethod) {
        this.jobMethod = jobMethod;
    }

    public String getJobCode() {
        return jobCode;
    }

    public void setJobCode(String jobCode) {
        this.jobCode = jobCode;
    }

    public String getJobGroup() {
        return jobGroup;
    }

    public void setJobGroup(String jobGroup) {
        this.jobGroup = jobGroup;
    }

    public String getJobDesc() {
        return jobDesc;
    }

    public void setJobDesc(String jobDesc) {
        this.jobDesc = jobDesc;
    }

    public String getJobOwner() {
        return jobOwner;
    }

    public void setJobOwner(String jobOwner) {
        this.jobOwner = jobOwner;
    }

    public String getExpressionType() {
        return expressionType;
    }

    public void setExpressionType(String expressionType) {
        this.expressionType = expressionType;
    }

    public String getExpression() {
        return expression;
    }

    public void setExpression(String expression) {
        this.expression = expression;
    }

    public String getJobArgs() {
        return jobArgs;
    }

    public void setJobArgs(String jobArgs) {
        this.jobArgs = jobArgs;
    }

    public String getJobRunNode() {
        return jobRunNode;
    }

    public void setJobRunNode(String jobRunNode) {
        this.jobRunNode = jobRunNode;
    }

    public List<String> getJobActiveNode() {
        return jobActiveNode;
    }

    public void setJobActiveNode(List<String> jobActiveNode) {
        this.jobActiveNode = jobActiveNode;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getGroup() {
        return group;
    }

    public void setGroup(String group) {
        this.group = group;
    }

    public List<NodeRegistryDO> getNodes() {
        return nodes;
    }

    public void setNodes(List<NodeRegistryDO> nodes) {
        this.nodes = nodes;
    }

    public Integer getStrategyCode() {
        return strategyCode;
    }

    public void setStrategyCode(Integer strategyCode) {
        this.strategyCode = strategyCode;
    }

    public int getScheduleStatus() {
        return scheduleStatus;
    }

    public void setScheduleStatus(int scheduleStatus) {
        this.scheduleStatus = scheduleStatus;
    }

    public int getMaxRunTime() {
        return maxRunTime;
    }

    public void setMaxRunTime(int maxRunTime) {
        this.maxRunTime = maxRunTime;
    }

    public String getLastModifyUser() {
        return lastModifyUser;
    }

    public void setLastModifyUser(String lastModifyUser) {
        this.lastModifyUser = lastModifyUser;
    }

    public String getLdapUser() {
        return ldapUser;
    }

    public void setLdapUser(String ldapUser) {
        this.ldapUser = ldapUser;
    }

    public String getHeaderKey() {
        return headerKey;
    }

    public void setHeaderKey(String headerKey) {
        this.headerKey = headerKey;
    }

    public String getHeaderValue() {
        return headerValue;
    }

    public void setHeaderValue(String headerValue) {
        this.headerValue = headerValue;
    }

    public Integer getJobLevel() {
        return jobLevel;
    }

    public void setJobLevel(Integer jobLevel) {
        this.jobLevel = jobLevel;
    }

    public String getTester() {
        return tester;
    }

    public void setTester(String tester) {
        this.tester = tester;
    }
}
